﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DownloadMag.Core
{
    /// <summary>
    /// 远程文件信息
    /// </summary>
    public class RemoteFileInfo
    {
        private string m_MimeType;
        private bool m_AcceptRanges;
        private long m_FileSize;
        private DateTime m_LastModified = DateTime.MinValue;

        /// <summary>
        /// 文件类型
        /// </summary>
        public string MimeType
        {
            get { return m_MimeType; }
            set { m_MimeType = value; }
        }
        /// <summary>
        /// 是否支持断点续传（是否支持分段下载）
        /// </summary>
        public bool AcceptRanges
        {
            get { return m_AcceptRanges; }
            set { m_AcceptRanges = value; }
        }
        /// <summary>
        /// 文件大小
        /// </summary>
        public long FileSize
        {
            get { return m_FileSize; }
            set { m_FileSize = value; }
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime LastModified
        {
            get { return m_LastModified; }
            set { m_LastModified = value; }
        }

    }
}
